package com.blb.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_area")
public class Area {
    @TableId(type = IdType.AUTO)
private Integer id;
private int code;
private String name;
private Integer parentId;
private int level;
private int type;
private int servicestate;
private int deleteFlag;
private int region;
@TableField(exist = false)
private List<Area> children;
}
